Skip to content

Font-lock protocol method docstrings#695

Merged
bbatsov merged 1 commit intomasterfrom
fix-protocol-method-docstrings
Feb 27, 2026
Merged

Font-lock protocol method docstrings#695
bbatsov merged 1 commit intomasterfrom
fix-protocol-method-docstrings

Conversation

@bbatsov
Copy link
Member

@bbatsov bbatsov commented Feb 20, 2026

Fixes #402.

Protocol method docstrings were rendered as regular strings. Now they get font-lock-doc-face when the string is the last element in a method form inside defprotocol.

Protocol method docstrings were rendered as regular strings instead of
with font-lock-doc-face. Detect them by checking if the string is the
last element in a method form inside a defprotocol.
@bbatsov bbatsov force-pushed the fix-protocol-method-docstrings branch from b9f37d1 to 5a36d98 Compare February 20, 2026 20:57
@bbatsov bbatsov merged commit 7d38baf into master Feb 27, 2026
6 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Protocol method docstrings are not font-locked as docstrings

1 participant